package com.fpmsa.officeweb.controller;

import com.fpmsa.officeweb.constant.OWConstant;
import com.fpmsa.officeweb.service.IJobService;
import com.fpmsa.officeweb.service.OfficeWebService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * @Auther: Huang Yuehong
 * @Description: 官网招聘控制器
 * @Date: 2018/7/1 14:29
 */

@Controller
@RequestMapping(value = "/links")
public class LinksController {

    @Autowired
    private OfficeWebService officeWebService;

    @Autowired
    private IJobService jobService;

    private String PREFIX = "/templates/";

    @RequestMapping("")
    public String links(HttpServletRequest request, Model model){

        // 往页面的model对象里面添加“关键词”、“描述”、“title”、下拉框选项等属性,用request判断请求的来源（pc/移动端/微信端）
        officeWebService.addAttrForModel(request,model);

        return PREFIX + "links.html";
    }
}
